package com.wxzz.elearing.course.service.openfeign;

import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient("2128-wxzz-pay-application")
public interface IWxPayFeign {

    /**
     * 微信小程序支付
     * @param map
     * @return
     */
    @RequestMapping(value = "/wx-pay-api/orderPay", method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE)
    Map<String, String> orderPay(@RequestBody Map<String, String> map);

    /**
     * native pc微信支付
     * @param map
     * @return
     */
    @RequestMapping(value = "/wx-pay-api/doUnifiedOrder", method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE)
    Map<String, String> doUnifiedOrder(@RequestBody  Map<String, String> map);
}
